Ext.define('jwawa.erp.cfg.action.ActionModel', {
    extend: 'jwawa.erp.framework.JwawaModel',

    findAllLeafActions: function(opt){
        "use strict";
        var me = this,
            optional = me.buildOpt(opt);

        Jwawa.framework.JwawaConnection.request({
            url      : '/action/find-all-leaf-actions',
            async    : false,
            success : function(response) {
                var actions = response['data'];
                optional['success'](actions, response);
            }
        });
    }
});